<template>
    <m-activity
        :clickEvent="linkPath"
    >

    </m-activity>
</template>
<script>
    import CustomerActivity from "../../../real-components/CustomerActivity";
    import {getPageTree} from "../../../utils/getPageTree";
	export default {
        props: {
            id: {
                type: String,
                default: ""
            },
            type: ""
        },
		data() {
			return {
                page: "index"
			}
		},
		computed: {
            vdObj() {

                console.log("这是渲染页面拿到更新后的obj", this.getCurrentVDO(this.id));
                return this.getCurrentVDO(this.id);
            }
		},
		methods: {
            linkPath() {
                // console.log("这是渲染页面拿到更新后的obj---click", this.vdObj);
                this.$router.push({"path": this.vdObj.config.url});
            }
		},
		components: {
            "m-activity": CustomerActivity
		},
		filters: {

		},
		created() {
            // console.log("这是渲染页面的obj---created", this.vdObj);
		},
		mounted() {
			
        },
        watch: {
            vdObj(newVal) {
                // console.log("这是渲染页面的obj---watch", newVal)
            }
        }

	}
</script>
<style scoped>
    .activity-box {
        background: #ffffff;
        height: 200px;

    }
    .activity-box p {
        font-size: 18px;

    }
    .activity-content {
        
    }

</style>

